﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SingletonUnit
{
    /// <summary>
    /// 简单单例模式(单线程模式)
    /// </summary>
    public sealed class SimpleSingleton : BaseSingleton
    {
        private static SimpleSingleton _instance = null;
        private SimpleSingleton() { }
        public static SimpleSingleton Instance
        {
            get
            {
                return _instance ?? (_instance = new SimpleSingleton());
            }
        }
    }
}
